home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / educate / wspmv2.arj / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-12-02  |  3KB  |  82 lines

  1. echo off
  2. cls
  3. if %1a == a: goto WHATDRIVE
  4. if %1b == b: goto WHATDRIVE
  5. if %1 == c: goto START
  6. if %1 == C: goto START
  7. if %1 == d: goto START
  8. if %1 == D: goto START
  9. if %1 == e: goto START
  10. if %1 == E: goto START
  11. if %1 == f: goto START
  12. if %1 == F: goto START 
  13. goto NOTDRIVE
  14. :START
  15. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  16. echo *                                                                       *
  17. echo *            Word Search Puzzle Maker Hard Disk Installation            *
  18. echo *                                                                       *
  19. echo *   This will create a directory called %1\WSPM on your hard disk,      *
  20. echo *   and will install Word Search Puzzle Maker and its files in that     *
  21. echo *   directory.                                                          *
  22. echo *                                                                       *
  23. echo *   If you don't want Word Search Puzzle Maker installed at this time,  *
  24. echo *   press Ctrl + C.                                                     *
  25. echo *                                                                       *
  26. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  27. echo 
  28. pause
  29. cls
  30. echo Making directory %1\WSPM . . .
  31. if exist %1\WSPM\*.* goto EXISTS
  32. md %1\WSPM
  33. :CHECK
  34. if exist WSPM.EXE goto CONTINUE
  35. echo 
  36. echo Place the disk containing Word Search Puzzle Maker and its files in 
  37. echo active drive.
  38. echo 
  39. pause
  40. goto CHECK
  41. :CONTINUE
  42. echo 
  43. echo Copying Word Search Puzzle Maker and its files . . .
  44. copy *.* %1\WSPM
  45. if not exist %1\WSPM\WSPM.EXE goto INSTALLERROR
  46. if not exist %1\WSPM\DIRECTRI.TXT goto INSTALLERROR
  47. cd %1\WSPM
  48. echo 
  49. echo Word Search Puzzle Maker is installed on your hard disk.  To run it, 
  50. echo type WSPM.
  51. %1
  52. echo 
  53. goto DONE
  54. :WHATDRIVE
  55. cls
  56. echo Installation Error:  To install Word Search Puzzle Maker on your hard 
  57. echo disk, you must include the drive as part of the install command.  For 
  58. echo example, to install Word Search Puzzle Maker on drive C, type INSTALL C: 
  59. echo and press ENTER.
  60. goto ERRORQUIT
  61. :NOTDRIVE
  62. cls
  63. echo Installation Error: The hard drive letter can be a letter from C to F,
  64. echo For example, INSTALL C: will install Word Search Puzzle Maker on drive 
  65. echo C.  You must include a colon after the drive letter.
  66. goto ERRORQUIT
  67. :INSTALLERROR
  68. cls
  69. echo Installation Error: Do you have enough space on your hard disk?
  70. echo Did you give the proper hard drive letter?
  71. goto ERRORQUIT
  72. :EXISTS
  73. cls
  74. echo Installation Error: WSPM Directory already exists on this drive.
  75. echo Delete this directory and all files in it, then try installing again.
  76. goto ERRORQUIT
  77. :ERRORQUIT
  78. echo 
  79. echo Word Search Puzzle Maker was not installed correctly.
  80. echo 
  81. :DONE
  82.